package saeildamil.ch18.thead;

import javax.swing.JOptionPane;

public class MultithreadEx01 {
	public static void main(String[] args) {
		//0-9까지 쓰레드로 실행
		DigitThreadEx thread1 = new DigitThreadEx();
		DigitThreadEx thread2 = new DigitThreadEx();
		AlphabetThreadEx thread3 = new AlphabetThreadEx();
		
/*		thread1.start();
		thread2.start();
		thread3.start();
		//run()가 호출 thread로 동작 */		
		
		thread1.run();
		thread2.run();
		thread3.run();
		
		
		String message = "main thread 종료";
		JOptionPane.showMessageDialog(null, message);

	}
}
